package com.ruoyi.books.mapper;

import java.util.List;
import com.ruoyi.books.domain.BooksBackground;

/**
 * 非遗背景汇总Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-02
 */
public interface BooksBackgroundMapper 
{
    /**
     * 查询非遗背景汇总
     * 
     * @param backgroundId 非遗背景汇总主键
     * @return 非遗背景汇总
     */
    public BooksBackground selectBooksBackgroundByBackgroundId(Long backgroundId);

    /**
     * 查询非遗背景汇总列表
     * 
     * @param booksBackground 非遗背景汇总
     * @return 非遗背景汇总集合
     */
    public List<BooksBackground> selectBooksBackgroundList(BooksBackground booksBackground);

    /**
     * 新增非遗背景汇总
     * 
     * @param booksBackground 非遗背景汇总
     * @return 结果
     */
    public int insertBooksBackground(BooksBackground booksBackground);

    /**
     * 修改非遗背景汇总
     * 
     * @param booksBackground 非遗背景汇总
     * @return 结果
     */
    public int updateBooksBackground(BooksBackground booksBackground);

    /**
     * 删除非遗背景汇总
     * 
     * @param backgroundId 非遗背景汇总主键
     * @return 结果
     */
    public int deleteBooksBackgroundByBackgroundId(Long backgroundId);

    /**
     * 批量删除非遗背景汇总
     * 
     * @param backgroundIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBooksBackgroundByBackgroundIds(Long[] backgroundIds);
}
